package com.nidu.demo.log.convertor;

import com.nidu.demo.base.BaseConvertor;
import com.nidu.demo.convertor.MapStructConfig;
import com.nidu.demo.log.dto.LoginLogCO;
import com.nidu.demo.log.mapper.dataobject.LoginLogDO;
import com.nidu.demo.log.model.LoginLog;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(config = MapStructConfig.class)
public interface LoginLogConvertor extends BaseConvertor<LoginLogDO, LoginLog, LoginLogCO> {
    
    @Override
    @Mapping(target = "createTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    @Mapping(target = "createBy", ignore = true)
    @Mapping(target = "updateBy", ignore = true)
    LoginLogDO toDataObject(LoginLog loginLog);

}
